<template>
    <button class="red" v-on:click="toCount">点击 {{ count }} 次.</button>
</template>
<script>
module.exports = {
    data: function () {
        return {
            count: 0
        }
    },
    methods:{
        toCount(){
            this.count += 1;
        }
    }
}
</script>

<style>

</style>